from server.api.sys.role import r_role
from server.api.sys.sys_log import r_sys_log
from server.api.sys.sys_login_record import r_sys_login_record
from server.api.sys.sys_user import sys_user
from server.api.sys.route import r_route
from server.api.gym import r_gym
from server.api.field import r_field
from server.api.booking import r_booking
from server.api.order import r_order
from server.api.m_dict import r_dict


def init_api_route(app):
    app.register_blueprint(sys_user, url_prefix='/sys_user')
    app.register_blueprint(r_role, url_prefix='/role')
    app.register_blueprint(r_sys_log, url_prefix='/sys_log')
    app.register_blueprint(r_sys_login_record, url_prefix='/sys_login_record')
    app.register_blueprint(r_route, url_prefix='/route')
    app.register_blueprint(r_gym, url_prefix='/gym')
    app.register_blueprint(r_field, url_prefix='/field')
    app.register_blueprint(r_booking, url_prefix='/booking')
    # 订单api
    app.register_blueprint(r_order, url_prefix='/order')
    app.register_blueprint(r_dict, url_prefix='/dict')
